package com.fqy.ticket.common.exception;

public class BusinessException extends RuntimeException{
    private BusinessExceptionEnum anEnum;

    public BusinessException(BusinessExceptionEnum anEnum) {
        this.anEnum = anEnum;
    }

    public BusinessExceptionEnum getAnEnum() {
        return anEnum;
    }

    public void setAnEnum(BusinessExceptionEnum anEnum) {
        this.anEnum = anEnum;
    }

    @Override
    public Throwable fillInStackTrace() {
        // 只打印当前信息，不递归调用堆栈
        return this;
    }
}
